package nju.mscs.data.object;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;

public class VipUpdataList implements Serializable{
	protected ArrayList<VipConsumerUpdata> uplist = new ArrayList<VipConsumerUpdata>();
	
	protected boolean requestVipDelete(String id){
		VipConsumerUpdata vcu = new VipConsumerUpdata(VipConsumerUpdata.DELETE,id);
		return uplist.add(vcu);
	}
	protected boolean requestVipAdde(String name,String id,boolean sex,int tel,Date day){
		VipConsumerUpdata vcu = new VipConsumerUpdata(VipConsumerUpdata.ADD,id,name,sex, tel,day );
		return uplist.add(vcu);
	}
	
	protected boolean requestVipModify(String id,int sumPointChang,int restPointChang){
		VipConsumerUpdata vcu = new VipConsumerUpdata(VipConsumerUpdata.MODIFY,id,sumPointChang,restPointChang);
		return uplist.add(vcu);
	}
	protected boolean requestVipChange(String name,String id,boolean sex,int tel,Date day){
		VipConsumerUpdata vcu=new VipConsumerUpdata(VipConsumerUpdata.ADD,id,name,sex, tel,day);
		return uplist.add(vcu);
	}
}
